package com.sima.java.builder;

import com.sima.java.factorymethod.MailSender;
import com.sima.java.factorymethod.Sender;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by maple on 2017-08-20.
 */
public class Builder {
    private List<Sender> senderList = new ArrayList<Sender>();

    public void builderMailSender() {
        senderList.add(new MailSender());
    }

    public void showMailSender() {
        for (Sender sender : senderList) {
            System.out.println(sender);
        }
    }
}
